// components/evaluate/evaluate.ts
Component({

  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    label: [
      { label: '态度好', count: 100, id: 0 },
      { label: '认真讲解', count: 100, id: 0 },
      { label: '环境好', count: 100, id: 0 },
      { label: '主动接待', count: 100, id: 0 }
    ],
    classify: [
      { label: '全部', count: 100, id: 0 },
      { label: '满意', count: 100, id: 0 },
      { label: '不满意', count: 100, id: 0 }
    ],
    selectClassifyIndex:0,
    themeCode:''
  },
  lifetimes: {
    attached() {
      //从本地获取当前选择的城市编码
      this.setData({
        themeCode: wx.getStorageSync('themeCode')
      })
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {
    onSelectClassify(res:any){
      console.log(res)
      this.setData({
        selectClassifyIndex:res.currentTarget.dataset.index
      })
    }
  }
})